/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-08-14
 * Time: 20:57
 */
public class Test {
    public static void main(String[] args) {
        MyDoubleList list = new MyDoubleList();
//        list.addFirst(1);
//        list.addFirst(2);
//        list.addFirst(3);
//        list.addFirst(4);
//        list.display();
//        System.out.println("========头插=========");
        list.addLast(1);
        list.addLast(2);
        list.addLast(2);
        list.addLast(3);
        list.addLast(2);
        list.addLast(4);
//        list.display();
//        list.indexAdd(2,100);
//        list.display();
//        System.out.println("=====");
//        list.update(1,500);
//        list.display();
//        list.deleteAll(2);
        System.out.println(list.find(4));
        list.display();
        System.out.println(list.size());
//        list.clean();
//        list.display();

    }
}
